import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Index from '../views/Index.vue'
import Brand from '../views/Brand.vue'
import Serve from '../views/Serve.vue'
import Fabricate from '../views/Fabricate.vue'
import Honor from '../views/Honor.vue'
import Society from '../views/Society.vue'
import Mylogin from '../components/MyLogin.vue'
import MyZhuce from '../components/MyZhuce.vue'
import MyXiugai from '../components/MyXiugai.vue'
import Product from '../views/Product.vue'
import Page from '../views/Page.vue'



Vue.use(VueRouter)

const routes = [
  {
    path: '/page',
    name: 'Page',
    component:Page
  },
  {
    path: '/page',
    name: 'Page',
    component:Page
  },

  {
    path: '/product',
    name: 'Product',
    component:Product
  },
  {
    path: '/mylogin',
    name: 'Mylogin',
    component:Mylogin
  },
  {
    path: '/myzhuce',
    name: 'MyZhuce',
    component:MyZhuce
  },
  {
    path: '/myxiugai',
    name: 'MyXiugai',
    component:MyXiugai
  },
  {
    path: '/society',
    name: 'Society',
    component:Society
  },
  {
    path: '/honor',
    name: 'Honor',
    component:Honor
  },
  {
    path: '/fabricate',
    name: 'Fabricate',
    component:Fabricate
  },
  {
    path: '/serve',
    name: 'Serve',
    component:Serve
  },
  {
    path: '/',
    name: 'Index',
    component:Index
  },
  {
    path: '/home',
    name: 'Home',
    component:Home
  },
  {
    path: '/brand',
    name: 'Brand',
    component:Brand
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
